/**
 * Created by wzm on 2017/1/16.
 */
//其他验证
$.extend($.fn.validatebox.defaults.rules, {
    checkPort:{//端口验证
        validator:function (value) {
            var regex = /^([0-9]|[1-9]\d|[1-9]\d{2}|[1-9]\d{3}|[1-5]\d{4}|6[0-4]\d{3}|65[0-4]\d{2}|655[0-2]\d|6553[0-5])$/;
            return regex.test(value);
        },
        message:'端口号应为小于65535的数字！'
    }
})

//提示信息隐藏
$.extend($.fn.validatebox.defaults.tipOptions, {
    showEvent:"none",hideEvent:"none",showDelay:0,hideDelay:0,zIndex:"",onShow:function(){
        $(this).tooltip("destroy");
    },onHide:function(){
        $(this).tooltip("destroy");
    }
})